package com.ruoyi.project.video.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 视频信息对象 t_video
 * 
 * @author guozy
 * @date 2023-03-13
 */
public class Video extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** uuid */
    private String id;

    /** 标题 */
    private String title;

    /** 视频类型 */
    @Excel(name = "视频类型")
    private String type;

    /** 视频链接 */
    @Excel(name = "视频链接")
    private String videoUrl;

    /** 视频链接 */
    @Excel(name = "视频链接")
    private String videoImage;

    /** 爬虫时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "爬虫时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crawlTime;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setVideoUrl(String videoUrl)
    {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl()
    {
        return videoUrl;
    }
    public void setVideoImage(String videoImage)
    {
        this.videoImage = videoImage;
    }

    public String getVideoImage()
    {
        return videoImage;
    }
    public void setCrawlTime(Date crawlTime)
    {
        this.crawlTime = crawlTime;
    }

    public Date getCrawlTime()
    {
        return crawlTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("type", getType())
            .append("videoUrl", getVideoUrl())
            .append("videoImage", getVideoImage())
            .append("crawlTime", getCrawlTime())
            .toString();
    }
}
